<?php
/**
 * Created by PhpStorm.
 * User: titarzhe
 * Date: 18-4-18
 * Time: 上午10:30
 */
namespace AppBundle\Entity;

trait LabelTrait{

    public function getLabels(){
        return [];
    }

    public function getLabel($name){
        $labels = $this->getLabels();
        return isset($labels[$name])?$labels[$name]:'';
    }
}